package com.lz.dubbo.consumer.common.utils;

import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author: zip.li
 * @date: Created in 2023/7/14 17:51
 * @Description: 存储环境和token
 */
public class DataMap {
    private static Map<String, Object> DataMap = new ConcurrentHashMap<>();

    public static void put(String key, Object value) {
        DataMap.put(key, value);
    }

    public static Object get(String key) {
        return DataMap.get(key);
    }

    public static void remove(String key) {
        DataMap.remove(key);
    }

    public static Set<String> keySet() {
        return DataMap.keySet();
    }
}
